from django.urls import path
from django.shortcuts import reverse
from . import views


urlpatterns = [
	path('', views.PenaltyList.as_view(), name='plist'),
	path('p/<int:pk>', views.PenaltyDetail.as_view(), name='detail'),
	path('new/penalty', views.PenaltyCreate.as_view(success_url='/'), name='np'),
	path('new/player', views.PlayerCreate.as_view(success_url='/'), name='new_player'),
	path('del/pen/<int:pk>', views.PenaltyDelete.as_view(), name='del_pen'),
]